
spring:
  application:
    name: simple-gateway-${gatewayId}
  config:
    import: "consul:"
  cloud:
#    gateway:
#      routes:
#        - id: demo_service_api_route
#          uri: http://localhost:8087
#          predicates:
#            - Path=/api/some-data

    consul:
      host: ${CONSUL_ADDRESS}
      port: ${CONSUL_PORT}
      config:
        enabled: true
        fail-fast: true
        prefixes:
          - config
        default-context: application
        name: simple-gateway-${gatewayId}
        profile-separator: '::'
        format: YAML
        data-key: data
        watch:
          enabled: true
          delay: 1000

      discovery:
        instanceId: ${spring.application.name}_${vmhostname}
        serviceName: ${spring.application.name}
        heartbeat:
          #          use-actuator-health: false
          #          actuator-health-group: <your-custom-group-goes-here>
          enabled: true
          ttl: 10s
        prefer-agent-address: false
        prefer-ip-address: true

server:
  port: ${GATEWAY_PORT}

management:
  endpoints:
    web:
      exposure:
        include: "*"
